from Student import Student
from typing import Union


class Teacher(Student):
    teacher_name = None

    # 定义多种类型
    def say_hi(self, t: Union[int, str]):
        print("say-------at", t)


t = Teacher("1", "2", "3")
t.to_string()
t.say_hi(1)
t.say_hi("1")
# 可以不实用定义的类型
t.say_hi(("1", "2"))
